package day03;

public class IfElseIfDemo {
    public static void main(String[] args) {

        double price=335.0;//600  335
        if(price>=500){
            price*=0.7;
        } else {
            price *= 0.8;
        }
            System.out.println("最终金额="+price);


    }
}
